package com.xfcode.ai.platform.bean;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
@Data
public  class ChatCompletionResponse {
    private String id;
    private String object;
    private long created;
    private String model;
    private List<ChatCompletionChoice> choices;
    private Usage usage;

    public String getId() {
        return id;
    }

    public String getObject() {
        return object;
    }

    public long getCreated() {
        return created;
    }

    public String getModel() {
        return model;
    }

    public List<ChatCompletionChoice> getChoices() {
        if (choices == null) {
            return new ArrayList<>();
        }
        return choices;
    }
}
